package com.siyu.common.constant;

import com.siyu.common.config.change.ChangeConfigProperties;
import com.siyu.common.config.rainip.RainIpConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class PredictConstants {

    /**
     * 国信ip端口
     */
    public static  String IP_PORT;
    public static  String X_TOKEN;


    @Autowired
    private RainIpConfig rainIpConfig;

    @PostConstruct
    public void initialize() {
        IP_PORT = rainIpConfig.getIpport();
        X_TOKEN = rainIpConfig.getXtoken();
    }

    public static String getIP_PORT() {
        return IP_PORT;
    }
    public static String getXTOKEN() {
        return X_TOKEN;
    }
}
